<?php
/**
 * Created by PhpStorm.
 * User: rocky
 * Date: 2019-07-14
 * Time: 01:24
 */

namespace app\shop\resource;

use app\common\model\ArticleCollect;
use app\common\resource\BaseResource;

class OrderGoodResoure extends BaseResource
{
    public function toArray($data)
    {
        return [
            'order_good_id' => $data['id'],
            'good_id' => $data['good_id'],
            'title' => $data['good_title'],
            'price' => $data['price'],
            'num' => $data['num'],
            'spec_img' => $data['spec_img'],
            'spec_name'=>$data['spec_name'],
        ];
    }

}